package org.robert.export_client.demo;

import com.alibaba.fastjson2.JSON;
import com.robert.common.commonutil.util.StringUtil;

import java.util.HashMap;
import java.util.Map;

/**
 * Test:
 *
 * @author zhaoshengtao
 * @date 2024/02/04
 */
public class Test {

    public static void main(String[] args) {

        Map<String, Object> obj = new HashMap<>();
        obj.put("e_province", "上海市");
        obj.put("e_city", "上海市");
        obj.put("e_district", "静安区");
//        String address = (null != obj.get("e_province") ?  obj.get("e_province").toString() + " " : StringUtil.EMPTY)
//                + (null != obj.get("e_city") ?  obj.get("e_city").toString() + " " : StringUtil.EMPTY)
//                + (null != obj.get("e_district") ? obj.get("e_district").toString() + " " : StringUtil.EMPTY)
//                + (null != obj.get("e_receiveaddress") ? obj.get("e_receiveaddress").toString() + " " : StringUtil.EMPTY);
//        System.out.println(address);
        System.out.println(JSON.toJSONString(obj));
    }
}
